package com.virtium.vpm.dao;

import com.virtium.vpm.exception.RecordNotFoundException;
import com.virtium.vpm.hibernate.model.Type;

public class TestHibernate {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		
		TypeDAO typeDAO =  DAOFactory.getInstance().getTypeDAO();
		try {
			Type type = typeDAO.getTypeById(1);
			System.out.println(type.getName());
		} catch (RecordNotFoundException e) {			
			System.out.println(e.getMessage());		}
	}

}
